package kv_redis

import (
	"clean/domain"

	"github.com/gomodule/redigo/redis"
)

type HelloRepo struct {
	conn redis.Conn
}

func NewHelloRepo(c redis.Conn) *HelloRepo {
	return &HelloRepo{
		conn: c,
	}
}

func (r *HelloRepo) GetByName(name string) (*domain.Hello, error) {
	r.conn.Do()
}

func (r *HelloRepo) Save(hello *domain.Hello) {
	// helloDao := &HelloDao{
	// 	Name: hello.Name,
	// 	Msg:  hello.Msg,
	// }
	// r.db.NamedExec("insert into hello (name, msg) values (:name, :msg)", helloDao)
}
